AlgorithmBOJ 10807On this pageBOJ 10807문제 tipClicking the heading will take you to the BOJ problem. Solution